# -*- coding: utf-8 -*-
__author__ = 'hftec'
from Queue import Queue
import socket
import SerialComunicate
import TcpThread
from UdpServer import UdpServer

address = ('', 9088)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # s = socket.socket()
s.bind(address)
s.listen(5)

print "tcp server"
udp_server = UdpServer()
while(True):
    ss, addr = s.accept()
    print 'got connected from',addr
    #ss.send('byebye')
    thread =  TcpThread.TcpThread(ss)


ss.close()
s.close()
